<?php
include './Almacen.php';

$almacen = new Almacen( new DateTime() );

$logCerrado = $almacen->setCerrado();

$logDictando = $almacen->setDictando();

$contenido1 = json_encode( $logCerrado );
$fp1 = fopen( "log-cerrado.txt", "a+" );
fwrite( $fp1, $contenido1 );
fclose( $fp1 );

$contenido2 = json_encode( $logDictando );
$fp2 = fopen( "log-dictando.txt", "a+" );
fwrite( $fp2, $contenido2 );
fclose( $fp2 );